<?php
namespace Admin\Controller;

class IndexController extends BaseController {
    public function index(){
        
        $this->display();
    }
    
    public function welcome(){
        
        $this->display();
    }
    
    // 测试方法
    public function text(){
        
        dump(I('id'));
        dump(I('name'));
        dump(I('index'));
        
        $res = 1;
        
        $ip = new IpLocation();
        $loca = $ip->getlocation('172.19.186.2');
        dump(get_client_ip());
        $this->assign('res',$res);
        $this->display();
    }
    // 测试方法
    public function text2(){
    
        dump(I('id'));
        dump(I('name'));
        dump(I('index'));
    
        $this->show('<h1>测试界面2</h1>');
    }
}
?>
